package models

import "github.com/goravel/framework/database/orm"

type SysRole struct {
	orm.Model
	Name   string `validate:"required,min=20" json:"name"`
	Slug   string `json:"slug"`
	Sort   int    `json:"sort"`
	Status int    `json:"status"`
	Remark string `validate:"required,min=3" json:"remark"`
}

func NewSysRole() *SysRole {
	return &SysRole{}
}

func (SysRole) TableName() string {
	return "sys_role"
}
